Class MgntAccessSettingImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.MgntAccessSettingImpl
All Implemented Interfaces:
IPCObject, MgntAccessSetting

public class MgntAccessSettingImpl extends IPCObjectImpl implements MgntAccessSetting
Information provided by the PKI file:

    \class CMgntAccessSetting
    
    \brief CMgntAccessSetting is used to control telnet and ssh access into the asa
    
    \example network().getDevice("Router0").getAsaMgntAccessManager()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getAccessProtocol

      public AccessProtocol getAccessProtocol()
      Information provided by the PKI file:
      
          \brief Return the access protocol
          eTelnet =0,
          eSsh,
          eHttp
          
              
      Specified by:
      getAccessProtocol in interface MgntAccessSetting
      Returns:
      AccessProtocol Returns a AccessProtocol
    • getAllowedIp

      public IPAddress getAllowedIp()
      Information provided by the PKI file:
      
          \brief Return the ip address that is allowed to access the asa
          
          \return ip, value is the ip address that is allowed to access the asa.
          
              
      Specified by:
      getAllowedIp in interface MgntAccessSetting
      Returns:
      IPAddress Returns a IPAddress
    • getAllowedMask

      public IPAddress getAllowedMask()
      Information provided by the PKI file:
      
          \brief Return the mask address of the host that is allowed to access the asa
          
          \return ip, value is the mask address of the host that is allowed to access the asa.
          
              
      Specified by:
      getAllowedMask in interface MgntAccessSetting
      Returns:
      IPAddress Returns a IPAddress
    • getAllowedPrefix

      public int getAllowedPrefix()
      Information provided by the PKI file:
      
          \brief Return the prefix of the host that is allowed to access the asa
          
          \return int, value is the the prefix of the host that is allowed to access the asa.
          
              
      Specified by:
      getAllowedPrefix in interface MgntAccessSetting
      Returns:
      int Returns a int
    • getSrcNameIf

      public String getSrcNameIf()
      Information provided by the PKI file:
      
          \brief Return the nameif at which the host can access into
          
          \return string, value is the nameif at which the host can access into.
          
              
      Specified by:
      getSrcNameIf in interface MgntAccessSetting
      Returns:
      String Returns a String
    • getTimeout

      public int getTimeout()
      Information provided by the PKI file:
      
          \brief Return the timeout of the connection
          
          \return int, value is the timeout of the connection.
          
              
      Specified by:
      getTimeout in interface MgntAccessSetting
      Returns:
      int Returns a int
    • setTimeout

      public void setTimeout(int timeout)
      Information provided by the PKI file:
      
          \brief Set the timeout for the connection
          \param timeout - time in minutes
          
              
      Specified by:
      setTimeout in interface MgntAccessSetting
      Parameters:
      timeout - Takes in a parameter of timeout
    • toString

      public String toString()
      Information provided by the PKI file:
      
          \brief Return the configuration in string
          
          \return string, value is the configuration string.
          
              
      Specified by:
      toString in interface MgntAccessSetting
      Overrides:
      toString in class Object
      Returns:
      String Returns a String
    • setIpv4

      public void setIpv4(boolean isIpv4)
      Information provided by the PKI file:
      
          \brief set the access setting to ipv4 when it permits an ipv4 address
          \param isIpv4 - true if ipv4; false if ipv6
          
              
      Specified by:
      setIpv4 in interface MgntAccessSetting
      Parameters:
      isIpv4 - Takes in a parameter of isIpv4
    • isIpv4

      public boolean isIpv4()
      Information provided by the PKI file:
      
          \brief Return true if the setting allows ipv4 address and false if the setting allows ipv6 address
          
          \return bool, value is true if the setting allows ipv4 address and false if the setting allows ipv6 address.
          
              
      Specified by:
      isIpv4 in interface MgntAccessSetting
      Returns:
      boolean Returns a boolean
    • isActive

      public boolean isActive()
      Information provided by the PKI file:
      
          \brief Return true if the setting has all of the required configuration
          for example (ip address is set on the nameif interface)
          
          \return bool, value is true if the setting has all of the required configuration.
          
              
      Specified by:
      isActive in interface MgntAccessSetting
      Returns:
      boolean Returns a boolean
    • setActive

      public void setActive(boolean isActive)
      Information provided by the PKI file:
      
          \brief Set the setting to be active or inactive
          
          \param isActive, true to set to active, false to inactive.
          
              
      Specified by:
      setActive in interface MgntAccessSetting
      Parameters:
      isActive - Takes in a parameter of isActive